import java.util.Scanner;

public class TestDemo{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);
        char n = scanner.next().charAt(0);
        System.out.println("    "+ n +"    ");
        System.out.println("   "+ n +" "+ n +"   ");
        System.out.println("  "+n+" "+n+" "+n+"  ");
        System.out.println(" "+n+" "+n+" "+n+" "+n+" ");
        System.out.println(n+" "+n+" "+n+" "+n+" "+n);
    }
}
